package data;

import java.util.ArrayList;

public class Team {
	
	private int teamId;
	private String teamName;
	public ArrayList<Integer> teamRiders = new ArrayList<Integer>();
	
	public Team(int teamId) {
		this.teamId = teamId;
	}

	public int getTeamId() {
		return teamId;
	}

	public void setTeamId(int teamId) {
		this.teamId = teamId;
	}

	public String getTeamName() {
		return teamName;
	}

	public void setTeamName(String teamName) {
		this.teamName = teamName;
	}
	
	public void addRider(int id) {
		teamRiders.add(id);
	}
	
	public void printTeamRiders() {
		for (int i = 0; i < teamRiders.size(); i++)
			System.out.println("Rider id: "+teamRiders.get(i));
	}
}
